<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>教师信息</title>
    <link rel="stylesheet" href="/layui-v2.6.4/css/layui.css" media="all">
</head>
<body>
    <div style="padding: 20px;background-color:#30b6f2;">
        <div class="layui-card">
            <div class="layui-card-header">教师信息</div>
            <div class="layui-card-body">
                教师ID：<span th:text="${teacher.id}"></span><br/>
                教师姓名：<span th:text="${teacher.name}"></span><br/>
                教师年龄：<span th:text="${teacher.age}"></span><br/>
                教师性别：<span th:text="${teacher.sex}"></span><br/>
                教师生日：<span th:text="${#dates.format(teacher.birth,'yyyy-MM-dd HH:mm:ss')}"></span><br/>
                教师电话：<span th:text="${teacher.phone}"></span><br/>
                教师月薪：<span th:text="${#numbers.formatDecimal(teacher.money,2,3)}"></span><br/>
            </div>
        </div>
    </div>
</body>
<script src="/layui-v2.6.4/layui.js" charset="UTF-8"/>
<script src="/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
    var id=[[${teacher.id}]];
    var name="[[${teacher.name}]]";

    alert(id+"----"+name);
</script>
</html>
